Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(CVP-4331): add check-payload tool #331

Merged
merged 1 commit into from
Dec 3, 2024

Conversation

yashvardhannanavati
Copy link
Contributor

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Nov 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Please upload report for BASE (main@2b328bb). Learn more about missing BASE report.

Additional details and impacted files
@@           Coverage Diff            @@
##             main      #331   +/-   ##
========================================
  Coverage        ?   100.00%           
========================================
  Files           ?        18           
  Lines           ?       502           
  Branches        ?         0           
========================================
  Hits            ?       502           
  Misses          ?         0           
  Partials        ?         0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@yashvardhannanavati
Copy link
Contributor Author

@dirgim @jsztuka Can I please request your review on this?

@dirgim
Copy link
Collaborator

dirgim commented Nov 27, 2024

@yashvardhannanavati I have reservations about including a go utility into this image which is not geared towards such builds, would you consider having a separate image with which utilizes a supported go builder image instead?
You can consult the oras-container as an example - this image is also built by Konflux and maintained separately, and is also heavily utilized in build-definitions tasks (example).

@dirgim
Copy link
Collaborator

dirgim commented Nov 27, 2024

Including also @ralphbean for your opinion on how to include this tool in a best-practice manner.

@yashvardhannanavati
Copy link
Contributor Author

yashvardhannanavati commented Nov 27, 2024

@yashvardhannanavati I have reservations about including a go utility into this image which is not geared towards such builds, would you consider having a separate image with which utilizes a supported go builder image instead?

You can consult the oras-container as an example - this image is also built by Konflux and maintained separately, and is also heavily utilized in build-definitions tasks (example).

Yes, that makes sense. I'll check it out. Thank you!

@yashvardhannanavati yashvardhannanavati force-pushed the unreleased_bundle branch 6 times, most recently from 9f76aef to b2b4097 Compare December 2, 2024 10:24
@yashvardhannanavati
Copy link
Contributor Author

ADR https://konflux-ci.dev/architecture/ADR/0046-common-task-runner-image.html hints at moving towards a common runner image. So, building a separate image for check-payload wouldn't be the right direction as it would introduce overhead in the near future.

After a conversation with @dirgim , we decided to have a separate stage to build the check-payload tool so we can alleviate the concerns pointed out in his previous comment.

@yashvardhannanavati yashvardhannanavati force-pushed the unreleased_bundle branch 5 times, most recently from b3413e3 to 0329867 Compare December 2, 2024 19:30
Signed-off-by: Yashvardhan Nanavati <[email protected]>
@yashvardhannanavati
Copy link
Contributor Author

@dirgim @jsztuka @14rcole Could you please help review and merge this? Another build-definitions PR is blocked on this one

Copy link
Collaborator

@dirgim dirgim left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Collaborator

@jsztuka jsztuka left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@dirgim dirgim merged commit 671fbbb into konflux-ci:main Dec 3, 2024
7 of 8 checks passed

ARG CHECK_PAYLOAD_VERSION=0.3.2

RUN curl -k -s -L -o check-payload.tar.gz "https://github.com/openshift/check-payload/archive/refs/tags/${CHECK_PAYLOAD_VERSION}.tar.gz" && \
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not think that curl -k should be used to download data from GitHub. -k means --insecure.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is being fixed via #349.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants